Managing Operational State Data In Memory Module

ABSTRACT

The specification and drawings present a new apparatus and method for managing/configuring by the memory module controller storing operational state data for operating the memory module controller into an extended random access memory comprised in a memory module and in a host system memory of a host device during various operational modes/conditions of the memory module and the host system memory. Essentially, the memory module controller operated as a master for the data transfers as described herein. The operational state data typically comprises state information, a logical to physical (L2P) mapping table and register settings.

TECHNICAL FIELD

The exemplary and non-limiting embodiments of this invention relate generally to memory storage systems, and, more specifically, relate to managing/configuring by a memory module controller storing operational state data for a memory module.

BACKGROUND

This section is intended to provide a background or context to the invention that is recited in the claims. The description herein may include concepts that could be pursued, but are not necessarily ones that have been previously conceived, implemented or described. Therefore, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section.

The following abbreviations that may be found in the specification and/or the drawing figures are defined as follows:

ASIC application specific integrated circuit CPU central processing unit DMA direct memory access DRAM dynamic random access memory eMMC embedded multimedia card exFAT extended file allocation table HW hardware IO input output JEDEC joint electron device engineering council LBA logical block address MMM, MM mass memory module or memory module MMC multi media card MMCO memory module controller MRAM magnetic random access memory OS operations system P2L physical to logical PCRAM phase change random access memory RAM random access memory RRAM resistive random access memory SATAIO serial advanced technology attachment international organization SCSI small computer system interface SD secure digital SM system memory or host system memory SRAM static random access memory SSD solid state drive SW software UFS universal flash storage

Various types of flash-based mass storage memories currently exist. A basic premise of mass storage memory is to hide the flash technology complexity from the host system. A technology such as eMMC is one example. A managedNAND type of memory can be, for example, an eMMC, SSD, UFS or a microSD.

FIG. 1A reproduces FIG. 2 from JEDEC Standard, Embedded MultiMediaCard (eMMC) Product Standard, High Capacity, JESD84-A42, June 2007, JEDEC Solid State Technology Association, and shows a functional block diagram of an eMMC. The JEDEC eMMC includes, in addition to the flash memory itself, an intelligent on-board controller that manages the MMC communication protocol. The controller also handles block-management functions such as logical block allocation and wear leveling. The interface includes a clock (CLK) input. Also included is a command (CMD), which is a bidirectional command channel used for device initialization and command transfers. Commands are sent from a bus master to the device, and responses are sent from the device to the host. Also included is a bidirectional data bus (DAT[7:0]). The DAT signals operate in push-pull mode. By default, after power-up or RESET, only DAT0 is used for data transfer. The memory controller can configure a wider data bus for data transfer using either DAT[3:0] (4-bit mode) or DAT[7:0] (8-bit mode).

One non-limiting example of a flash memory controller construction is described in “A NAND Flash Memory Controller for SD/MMC Flash Memory Card”, Chuan-Sheng Lin and Lan-Rong Dung, IEEE Transactions of Magnetics, Vol. 43, No. 2, February 2007, pp. 933-935 (hereafter referred to as Lin et al.) FIG. 1B reproduces FIG. 1 of Lin et al., and shows an overall block diagram of the NAND flash controller architecture for a SD/MMC card. The particular controller illustrated happens to use a w-bit parallel Bose-Chaudhuri-Hocquengham (BCH) error-correction code (ECC) designed to correct random bit errors of the flash memory, in conjunction with a code-banking mechanism.

SUMMARY

According to a first aspect of the invention, a method, comprising: dynamically managing, by a memory module controller of a mass memory module, storage of all or a portion of operational state data for operating the memory module controller into an extended random access memory comprised in a memory of the mass memory module and in a host system memory of a host device; and reading, by the memory module controller after waking up from a shut down or a sleep state of the mass memory module, at least a part of the operational state data from one or more of: the extended random access memory and a non-volatile mass memory to restore an operational state of the memory module controller.

According to a second aspect of the invention, an apparatus, comprising: a mass memory module comprising an extended random access memory together with a portion of a host system memory in a host device; and a memory module controller configured to dynamically manage storage of all or a portion of operational state data for operating the memory module controller into an extended random access memory comprised in a memory of the mass memory module and in the host system memory of the host device, and further configured to read, after waking up from a shut down or a sleep state of the mass memory module, a part of the operational state data from one or more of: the extended random access memory and a non-volatile mass memory of the mass memory module to restore an operational state of the memory module controller.

BRIEF DESCRIPTION OF THE DRAWINGS

In the attached Drawing Figures:

FIG. 1A reproduces FIG. 2 from JEDEC Standard, Embedded MultiMediaCard (eMMC) Product Standard, High Capacity, JESD84-A42, June 2007, JEDEC Solid State Technology Association, and shows a functional block diagram of an eMMC;

FIG. 1B reproduces FIG. 1 of Lin et al., and shows an example of an overall block diagram of a NAND flash controller architecture for a SD/MMC card;

FIG. 2 is a simplified block diagram of a host device connected with a mass storage memory device, and is helpful in describing the exemplary embodiments of the invention;

FIG. 3 is a signal/message flow diagram that describes an embodiment of the invention described in commonly-assigned U.S. patent application Ser. No. 12/455,763, where the mass storage memory device of FIG. 2 can allocate, use and de-allocate RAM of the host device;

FIG. 4 is a signal/message flow diagram that describes another embodiment of the invention described in commonly-assigned U.S. patent application Ser. No. 12/455,763, where the mass storage memory device of FIG. 2 has a built-in file system;

FIGS. 5A and 5B, collectively referred to as FIG. 5, are representations of the host device and mass memory module in accordance with embodiments of the invention;

FIG. 6 is a logic flow diagram that illustrates the operation of a method, and a result of execution of computer program instructions embodied on a computer readable memory, further in accordance with the exemplary embodiments of this invention;

FIGS. 7A and 7B are examples of memory maps of the memory module controller in the memory module when utilization of system resources such as the portion DRAM 14G is disabled (FIG. 7A) or enabled (FIG. 7 b);

FIG. 8 is a diagram demonstrating embodiments shown in the flow chart in FIG. 6 relating to responding by a memory module controller to a command (or an attribute in the command) from a host device; and

FIG. 9 shows a block diagram of one exemplary embodiment of the host device when embodied as a wireless communication device.

DETAILED DESCRIPTION

Of interest to the ensuing description of the exemplary embodiments of this invention is commonly-assigned U.S. patent application Ser. No. 12/455,763, filed Jun. 4, 2009, “Apparatus and Method to Share Host System RAM with Mass Storage Memory RAM”, Olli Luukkainen, Kimmo Mylly and Jani Hyvonen (US 2010/0312947 A1), incorporated by reference herein. Before describing in detail the exemplary embodiments of this invention it will be useful to review at least a portion of the description of this commonly-assigned U.S. patent application Ser. No. 12/455,763.

As is stated, at present most mass storage memories provide LBA-based access, e.g., eMMC and different types of external memory cards such as SD. However, it may also be the case that the entire file system (FS) SW is embedded in the mass storage memory device.

When a mass storage memory is used in a high volume consumer device, such as a mobile wireless communication device, one important consideration is cost, and one factor affecting the cost is the amount of RAM in the mass storage memory device itself.

Another important consideration is performance. The overall performance depends on many factors. For example, for lengthy (time consuming) operations (in particular if the mass storage memory device contains an entire file system SW) there would be an advantage to include a substantial amount of RAM in the mass storage memory device. However, this can have a negative impact on the cost.

It may be the case that system context (metadata) would be stored in the flash memory of the mass storage memory device. However, this approach has several associated disadvantages. For example, repeatedly writing the system context (metadata) to the mass storage memory device raises wearing issues that can impact the usable life of the mass storage memory device. Also, writing data to the flash memory can be a relatively slow process.

Another important consideration is the power efficiency. To provide good power efficiency the mass storage memories are preferably shutdown (powered-off) when not needed (meaning also that the internal RAM of the device is preferably shutdown as well). However, and assuming that the RAM is volatile in nature, then whatever data is stored in the RAM is lost when the power is removed from the RAM. To then perform re-initialization after power-up all needed information (e.g., logical-to-physical mapping information and/or file system structures) need to be restored. A full re-initialization of a LBA mass storage memory may require a substantial (and user-noticeable) amount of time (e.g., up to one second with an SD card), and entire file system initialization (if the file system is resident in the mass storage memory) may take even longer. Therefore, it is desirable to retain internal device context over the power-off/power-on cycle.

FIG. 2 shows a simplified block diagram of a host system or device 10 connected with a mass storage memory 20 via a mass storage memory bus (MSMB) 18. The MSMB 18 may be compatible with any suitable mass memory interface standard such as MMC or UFS, as two non-limiting examples. The MSMB 18 may include signal lines such as those shown in FIG. 1A for an eMMC embodiment. The host device 10 includes at least one controller, such as a CPU 12 that operates in accordance with stored program instructions. The program instructions may be stored in a RAM 14 or in another memory or memories. The CPU 12 is connected with the RAM 14 and a MSMB interface (I/F) 16 via at least one internal bus 17. The MSMB interface 16 may include a memory controller (MC), or may be coupled with a MC unit associated with the CPU 12. The host device 10 may be a computer, a cellular phone, a digital camera, a gaming device or a PDA, as several non-limiting examples. Note that the RAM 14 may be any read/write memory or memory device, such as semiconductor memory or a disk-based memory.

The mass storage memory 20 includes a microcontroller or, more simply, a controller 22 that is connected via at least one internal bus 27 with a volatile RAM 24, a non-volatile mass memory 26 (e.g., a multi-gigabyte flash memory mass storage) and a MSMB interface (I/F) 28. The controller 22 operates in accordance with stored program instructions. The program instructions may be stored in the RAM 24 or in a ROM or in the mass memory 26. The mass storage memory 20 may be embodied as an MMC, eMMC, UFS or a SD device, as non-limiting examples, and may be external to (plugged into) the host device 10 or installed within the host device 10. Note that the mass memory 26 may, in some embodiments, store a file system (FS) 26A. In this case then the RAM 24 may store FS-related metadata 24A, such as one or more data structures comprised of bit maps, file allocation table data and/or other FS-associated information.

The embodiments of the invention described in commonly-assigned U.S. patent application Ser. No. 12/455,763 provide a technique to share the RAM 14 of the host device 10 with the mass storage memory device 20. It can be assumed that the host device 10 (e.g., a mobile computer, a cellular phone, a digital camera, a gaming device, a PDA, etc.) has the capability to allocate and de-allocate the RAM 14. The allocation of the RAM 14 may be performed dynamically or it may be performed statically. The allocation of a portion of the RAM may be performed in response to a request received at the host device 10, or at the initiative of the host device 10.

In the embodiments of the invention described in commonly-assigned U.S. patent application Ser. No. 12/455,763 the RAM 14 allocation is provided for the mass storage memory 20 (connected via the MSMB 18 to the host CPU 12), if the mass storage memory 20 has a need to extend its own RAM 24 space and/or if the mass storage memory 20 has a need for non-volatile RAM (the contents of which are not lost when the mass storage memory 20 is powered-off). The mass storage memory 20 can also read and/or write (R/W) allocated RAM 14 in the host device 10. The allocation/de-allocation and R/W access methods can be implemented by extensions to a command set used to communicate with the mass storage memory 20 via an applicable mass storage memory protocol.

In accordance with certain embodiments of the invention described in commonly-assigned U.S. patent application Ser. No. 12/455,763 the mass storage memory device 20 is provided with a mechanism to interrupt/send a message to host device 10 to initiate an allocation of space in the RAM 14. The interrupt/message is sent over the MSMB 18, and may be considered as an extension to current command sets. Referring to FIG. 3, an allocate memory command is sent during operation 3-1. If the allocation request succeeds (indicated during operation 3-2) the controller 22 is enabled to extend its own RAM 24 with the RAM 14 of the host device 10. The mass storage memory device 20 may store, for example, large tables into the RAM 14 using a RAM WRITE command or it may fetch data from the host device RAM 14 using a RAM READ command. The read or write operation is shown as interleaved operations 3-3, 3-4, 3-5, 3-6, . . . , 3-(N−1), 3-N. When the mass storage memory device 20 completes the operation with the RAM 14 it may free the host device RAM 14 using another command that requests that the host 10 RAM memory be de-allocated (operation 3-(N+1)).

FIG. 4 illustrates a further exemplary embodiment described in commonly-assigned U.S. patent application Ser. No. 12/455,763 that utilizes the host system RAM 14 for the mass storage memory 26 having a built-in file system, such as the FS 26A shown in FIG. 2. First the host system 10 sends a SHUTDOWN command to the mass storage memory device 20 (operation 4-1). Next the mass storage memory device 20 allocates RAM 14 from the host 10 and then loads (stores using a RAM WRITE command) all vital ‘static’ file system-related data (meta-data 24A) into host RAM 14 (operation 4-2). ‘Static’ data in this context may be, for example, various bitmaps, such as an allocation bitmap in the exFAT or ext3 file systems. This data may be processed (e.g., at least one of sorted, arranged and filtered) by the CPU 12 (controller) of the host device, and may include data from a large number of sectors in the mass storage memory 26. Mass memory storage device 20 may then send a shutdown OK indication (operation 4-3). The host 10 can remove power from the mass memory storage device 20, and the device 20 may be physically removed from the MSMB 18. Re-initialization (operations 4-4, 4-5, 4-6) of the mass storage memory device 20 is performed when host device 10 needs to get/put certain data from or into the mass storage memory device 20. Re-initialization of the mass storage memory 26 (and the file system 26A) may be sped up by using the sorted/arranged/filtered read data from the RAM 14. When the re-initialization operation is completed the mass storage memory device 20 may de-allocate the used RAM 14 in the host device 10, or the RAM 14 may not be de-allocated thereby reserving the RAM space for future use by the mass storage memory device 20.

The allocation of host RAM 14 may occur differently in some embodiments. For example, the host device 10 may allocate RAM 14 dynamically and pass a ‘pointer’ to the allocated RAM to the mass storage memory device 20. It is then up to the controller 22 of the mass storage memory device 20 how to utilize the allocated host RAM 14. Note that in this embodiment an explicit allocation request from the mass storage memory device 20 may not be sent to the host device 10. Instead, the host device 10 may on its own initiative allocate a portion of the RAM 14, such as when it first detects the presence of the mass memory storage device 20. Of course, subsequent signaling between the mass storage memory device 20 and the host device 10 may be used to change the size of the allocated RAM 14 if the initial allocation is not sufficient for the needs of the controller 22. As another example of RAM 14 allocation, a portion of the RAM 14 may be allocated by the host 10 in a static manner and the mass storage memory device 20 then simply uses the same portion of the RAM 14 each time it needs to extend the RAM 24. In this case the mass storage memory device 20 may already have knowledge of the location/size of the allocated RAM 14, and a pointer is not needed to be sent from the host device 10.

Note that while it may typically be the case that the mass storage memory device 20 will receive an allocation of host memory to store contents of the volatile RAM 24, in general the allocation may be for storing data for any read/write memory contained within the mass storage memory device 20.

Having thus provided an overview of various non-limiting and exemplary embodiments of the invention described in the commonly-assigned U.S. patent application Ser. No. 12/455,763, a description is now made of the exemplary embodiments of this invention. In a managedNAND memory (e.g., eMMC, SSD, UFS, microSD) the memory controller (such as the controller 22 shown in FIG. 2) takes care of the flash management functions such as bad block management and wear leveling. In a typical low cost implementation there is only a small input/output (IO) buffer SRAM in the managedNAND. Embedded in the controller in higher end managedNANDs such as SSDs there may be tens to hundreds of megabits of discrete DRAM as cache. In the future some new memory technologies such as MRAM could serve as very fast non-volatile cache also.

The embedded memory in the controller is not sufficient enough to store all the run time data needed by the module and thus some portion of the run time data is stored/mirrored in non-volatile memory (e.g. NAND) of the module. This is also necessary to avoid loss of (operation) data in case of sudden power down. The non-volatile mass memory, such as NAND, is very slow for storing/reading such data, if compared to typical volatile/non-volatile execution memories like SRAM/DRAM/MRAM. This causes delay to operation of the memory module. For example, after power up the whole mass memory subsystem needs to be re-initialized from NAND and this may take time up to 1 s (e.g. eMMC, SD, SATAIO devices).

Reference can be made to FIG. 5 where those components described in reference to FIG. 2 are numbered accordingly. In FIGS. 5A and 5B a portion 14G of the system RAM (e.g., DRAM) 14 is allocated for use by the mass memory module 20 (described here in a non-limiting embodiment as a UFS memory module or a memory module). The host device 10 includes an application processor that can be embodied as the CPU 12. Included with or coupled to the application processor 12 may be a DRAM controller 11 for the DRAM 14. Also present is the above-mentioned mass memory module 20 (e.g., UFS) host controller 13. The host controller 13 can be embodied as the CPU 12 or it can be embodied as a separate device. The mass memory module (MMM) 20 (which is also called herein a memory module, MM, 20) may be connected to the host device through an interface 22 a, e.g., via a bus (e.g., like the mass storage memory bus 18 shown in FIG. 2) Also the memory module 20 can be a part of the host device 10 as shown in FIG. 5 a or it may be a separate device as shown in FIG. 2.

Furthermore, the memory module 20 may comprise a non-volatile memory (e.g., NAND) 26 (or mass memory) with a portion 26A allocated for the memory controller and a memory controller 22 with an SRAM 24. For the purpose of this invention, the SRAM 24 and a portion 14G of the system DRAM 14 may be considered as an extended random access memory. It should be noted that an execution memory 24 of the memory controller 22 and/or the host system memory 14 could be a non-volatile memory such as MRAM, PCRAM and/or RRAM.

FIG. 5B shows that the system DRAM 14 stores an operating system (OS) 14 a and application programs (applications) 14 b. The system DRAM 14 also typically stores a file system cache 14 c associated with a file system (part of the OS). In the embodiment of FIG. 5B a portion of the system DRAM 14 is allocated as a transfer buffer 14 d. Another portion of the system DRAM 14 is allocated to store an access list 14F. Also included is the DRAM portion 14G that is allocated for the memory module 20, and into which the operation state data can be moved for the memory module 20.

The commonly-assigned U.S. patent application Ser. No. 12/455,763 further describes enabling the memory module to utilize the system DRAM to store data to and read data from (e.g., see FIGS. 3-4 above). This could be further utilized in embodiments described herein to enable the mass storage memory module, for example, to store its state into the system DRAM, then go to sleep/power down and after wake up/power up read back quickly the previous state. In a managed NAND environment this storing and reading of the state of operation could be taken care by the mass memory module 20 itself and in particular by the memory module controller 22, rather than by the host device 10 as the memory module itself knows best which data is needed to be stored and which portion of the run time data is allowed to be lost, e.g., during power down.

A new method and apparatus are presented for managing/configuring by the memory module controller (e.g., memory module controller 22 shown in FIG. 5 a) storing operational state data for operating the memory module controller into extended random access memory comprised in a memory module and host system memory (e.g., DRAM 14) during various operational modes/conditions of the memory module 20 and the host system memory (e.g., the DRAM 14). Essentially, the memory module controller operated as a master for the data transfers as described herein. The operational state data typically comprises one or more of state information, a logical to physical (L2P) mapping table and register settings.

The memory module controller, after waking up from a shut down or a sleep state of the mass memory module, can read at least a part of the operational state data from the extended random access memory and/or from a non-volatile mass memory to restore an operational state of the memory module controller. The reading can be based on settings of the mass memory module or based on a command or an attribute of a command from the host device which can override the settings of the mass memory module. Alternatively, the setting can override the command or the attribute from the host device.

The settings of the mass memory module may be registers settings visible also outside (e.g., access to DRAM disabled/enabled) or internal settings visible only to the memory module controller, e.g., information from which source (extended random access memory or flash memory) it would be most efficient to load the operational state data.

It is also noted that a command/attribute from the host (at an initialization phase) may override above mentioned internal settings in the mass memory module, for example, by denying access to DRAM in the host device (compromised data case) or alternatively the command may indicate that the mass memory module is free to initialize from any source.

Furthermore, the operational state data may be divided at least into high priority data (e.g., at least state information and possibly some L2L mapping table) and low priority data (e.g., register settings), so that the high priority data is stored in the DRAM portion 14G of the extended random access memory. But more than two priority levels can be used as well for classifying the operational state data, e.g. lowest priority data may be stored in the portion 26A of the non-volatile memory.

The fundamental principle for such data transfers is based on utilizing fast extended random access memory both in the memory module 20 and in a host system memory (DRAM portion 14G) of the host device 10 whenever possible over relatively slow non-volatile memory 26. This can gain an advantage for faster waking up and saving power as the memory module can be powered down more often.

FIG. 6 shows a logic flow diagram that illustrates the operation of a method, and a result of execution of computer program instructions embodied on a computer readable memory, further in accordance with the exemplary embodiments of the invention as described herein. It is noted that the order of steps shown in FIG. 6 is not absolutely required, so in principle, the various steps may be performed out of the illustrated order. Also certain steps may be skipped, different steps may be added or substituted, or selected steps or groups of steps may be performed in a separate application.

In a method according to the exemplary embodiments, as shown in FIG. 6, in a first step 70, a memory module controller (MMCO), e.g., the memory module controller 22, dynamically manages/configures storing operational state data for operating the MMCO into one or more of: an extended random access memory (ERAM) comprised in both the memory module (MM) 20 (e.g., SRAM 24) and a host system memory (or system memory, SM) 14 (e.g., a dedicated portion 14G), and in a non-volatile memory (e.g., a dedicated portion 26A of the NAND memory 26 in the MM 20). For example, if both the MM and the SM are enabled to operate in a normal condition, the storing can be configured based on predefined rules. The important (high priority) data like the state information, and all or partial logical to physical (L2P) mapping tables may be stored (written) into DRAM portion 14G of ERAM and lower priority data into SRAM 24 portion of ERAM, but the lowest priority data (e.g., register settings) may be stored in the non-volatile memory 26 (e.g., in the portion 26A). Some of the high priority data of the operational state data may be also stored in the non-volatile memory 26 (and possibly in the SRAM 22) as a duplicate of the data stored in the DRAM portion 14G-. Moreover, this storing arrangement of both MM 20 and SM 14 may be configured by the MMCO 22 automatically using a predetermined default arrangement.

Furthermore, the flow chart in FIG. 6 shows 3 scenarios, which may trigger reconfiguring by the MMCO 22 the storing arrangement established in step 70.

In one scenario, in step 71, the memory module 20 is to be disabled, e.g., going to shut down or sleep. In other words, the memory module can receive at least one of the following indications: power down indication or go to sleep/dormant mode command/state change from the host device, or automatically go to sleep/dormant mode after some defined timeout in the memory module.

In a next step 72, the MMCO reconfigures storing the operational state data in the SM (DRAM portion 14G) and possibly in the non-volatile memory (NAND 26) of the MM 20. For example, the MMCO 22 can add (write) in the DRAM portion 14G additional operational state data if possible (e.g., to the maximum capacity of the DRAM portion 14G) and further to back up (duplicate) the high priority data in the non-volatile memory. Also the low priority data such as register settings can be stored in the non-volatile memory portion 26A if not stored in the DRAM portion 14G. Step 72 may be performed by the MMCO 22 automatically based on the predefined procedure for the situation described in step 71.

In a next step 73, the MM is enabled (power up/wake up).

In a next step 74, the MMCO reads (during initialization) at least the operational state data stored in the DRAM portion 14G to restore an operational state of the MMCO 22. Also the information stored in the non-volatile memory portion NAND 26A as described in step 72 could be possibly used for restoring the operational state of the MMCO 22.

In another scenario, in step 75, the MMCO 22 ascertains (e.g., receiving a command from the host device or an attribute comprised in the command) that the SM (DRAM portion 14G) of the host device 10 is unavailable and/or to be disabled, and/or the data stored in the DRAM portion 14G is compromised.

Then in a next step 76, the MMCO 22 can store the operational state data from the DRAM portion 14G into the non-volatile memory 26A and/or SRAM 22 of the MM 20 before the SM in the host device becomes unavailable/disabled. If the operational state data stored in the SM is compromised, then the MMCO 22 can restore/rebuild needed information from the non-volatile memory (NAND 26) if that data is not available in the SRAM 22.

In a next step 77, the SM in the host device is enabled (power up/wake up which is signals to the MM 20).

In a next step 78, the MMCO 22 reconfigures storing at least important operational state data into the SM (DRAM 14) as in step 70.

Yet in another scenario, in step 79, both the memory module 20 and SM 14 are to be disabled, e.g., shut down or going to sleep. For example, the host device may issue a command of a total shutdown. In a next step 80, the MMCO reconfigures storing the operational state data in the non-volatile memory (NAND 26) of the MM.

In a next step 81, both the memory module 20 and SM 14 in host device are enabled (power up/wake up). In a next step 82, the MMCO configures recovering and storing the operational state data like in step 70 using information stored in the non-volatile memory (NAND 26) of the MM. It is further noted that this step may include the mass memory module initializing itself using all or selected operational state data stored in the non-volatile memory at step 80.

It is noted that reading and writing steps (e.g., see steps 72, 76, 80, 74, 78 and 82) may be performed by the MMCO 22 based on the command (or the attribute in the command) from the host device 10 and/or using its own judgment.

FIGS. 7 a-7 b and 8 further illustrate different embodiments disclosed in the flow chart of FIG. 6. For example, FIGS. 7 a and 7 b show examples of memory maps of the MMCO 22 in the MM 20 when utilization of system resources such as the DRAM portion 14G is disabled (FIG. 7 a) and when utilization of system resources is enabled (FIG. 7 b).

FIG. 7 a (when DRAM portion 14G is not accessible/disabled) provides operational details for a non-volatile memory portion such as NAND portions 26A and SRAM 24 identified in FIG. 5. As shown in FIG. 7 a, the NAND portion 26A shown on the left can store a small boot section from which to load first pieces of a code to initialize the memory module controller 22. The SRAM 24 can provide run time execution memory storing of necessary code to run the MM 20 and storing at least pieces of metadata like P2L mapping data. Also the NAND portion 26A shown on the right can be a paging memory for the MMCO 22 if there is not enough SRAM 24 to store the whole P2L mapping table; also NAND portion 26A can be a permanent storage for registers and P2L mapping table.

FIG. 7 b (when DRAM 14G is accessible/enabled) provides operational details for NAND portions 26A, SRAM 24 and DRAM portion 14G identified in FIG. 5, where SRAM 24 and DRAM 14G form the extended random access memory. As shown in FIG. 7 b, the NAND portion 26A on the left can store a small boot section from which to load first pieces of a code to initialize the memory controller. In addition, the NAND portion 26A can store information from which it would be beneficial to reinitialize after a power cycle. The SRAM 24 (as in FIG. 7 a) can provide run time execution memory storing of necessary code to run the MM 20 and storing at least pieces of metadata like P2L mapping data. The NAND portion 26A on the right can also be mainly a permanent storage for registers and P2L mapping table. The main difference with FIG. 7 a is now in the enabled state of the DRAM portion 14G which becomes an extension of the SRAM 24 (forming the extended random access memory) for storing run time data like state information, P2L mapping table, etc., especially for data which is needed to reinitialize the MMCO 22 after power cycle as fast as possible.

It is noted that the areas 26A shown in 7 a and 7 b could be also beside each other. Left side could be realized also by some boot ROM embedded in the MMCO, at least partly. It is further noted that memory map of the MMCO could be also a kind of a virtual map, not physical (as shown in FIGS. 7 a and 7 b).

FIG. 8 demonstrates another aspect of the embodiments shown in the flow chart in FIG. 6 relating operation of the MMCO 22 to a command (or an attribute in the command) from the host device 10. If the host device 10 (e.g., its CPU 12) knows that the data in the DRAM portion 14G has been compromised, it can send a command to the MM 20 to deny reading from the host system memory DRAM portion 14G thus forcing the MMCO 22 to read from the non-volatile memory like NAND portion 26A for any setting in the MM 20. Then the operation state of the MMCO 22 is read from the NAND portion 26A.

If the host device 10 (CPU 12) does not impose any restriction on reading from the DRAM portion 14G, then the operation state of the MMCO 22 is read from the DRAM portion 14G and possibly from the NAND portion 26A (for low-priority data).

It is noted that, the commands/attributes send by the host device 10 to the memory module 20 (e.g., through the interface 22 a as shown in FIG. 5 a) may have different levels of enforcement on the memory module controller 22. For example, the command for denying reading from the host system memory, i.e., from the DRAM portion 14G in reference to FIG. 8, may have a high enforcement level. Similarly another command or an attribute in a command of the host device forbidding writing in the host system memory (e.g., no extra space is available) additional information related to the operational state data may be also a high enforcement level command which cannot be overridden by the MMCO 22. An example of a low enforcement command/attribute by the host device may be when it enables utilization of 14G (or is not disabling it), leaving it up to the MMCO to decide. Low enforcement command/attribute could also be indication of power down by the host device, so that the MMCO can make the decision whether to perform read/write operation with the state data or not.

FIG. 9 illustrates one non-limiting embodiment of the host device 10 used with the mass storage memory device 20, referred to in FIG. 6 simply as a memory card 20. The mass storage memory device 20 can be removable or it can be embedded in the device 10. In this exemplary embodiment the host device 10 is embodied as a user equipment (UE), shown in both plan view (left) and sectional view (right). In FIG. 9 the host device (UE) 10 has a graphical display interface 120 and a user interface 122 illustrated as a keypad but understood as also encompassing touch screen technology at the graphical display interface 120 and voice recognition technology received at a microphone 124. A power actuator 126 controls the device being turned on and off by the user. The exemplary UE 10 may have a camera 128 which is shown as being forward facing (e.g., for video calls) but may alternatively or additionally be rearward facing (e.g., for capturing images and video for local storage). The camera 128 is controlled by a shutter actuator 30 and optionally by a zoom actuator 32 which may alternatively function as a volume adjustment for the speaker(s) 34 when the camera 128 is not in an active mode.

As an example, image data captured by the camera 128 can be stored in the mass storage memory device 20 under control of a camera application and can thus benefit from the use of the embodiments of this invention. As another example, audio data captured by the microphone 124 can be stored in the mass storage memory device 20 under control of an audio application and can thus also benefit from the use of the embodiments of this invention.

Within the sectional view of FIG. 9 are seen multiple transmit/receive antennas 36 that are typically used for cellular communication. The antennas 36 may be multi-band for use with other radios in the UE. The operable ground plane for the antennas 36 is shown by shading as spanning the entire space enclosed by the UE housing though in some embodiments the ground plane may be limited to a smaller area, such as disposed on a printed wiring board on which the power chip 38 is formed. The power chip 38 controls power amplification on the channels being transmitted and/or across the antennas that transmit simultaneously where spatial diversity is used, and amplifies the received signals. The power chip 38 outputs the amplified received signal to a radio frequency (RF) chip 40 which demodulates and downconverts the signal for baseband processing. A baseband (BB) chip 42 detects the signal which is then converted to a bit stream and finally decoded. Similar processing occurs in reverse for signals generated in the host device 10 and transmitted from it.

Signals going to and from the camera 128 may pass through an image/video processor 44 that encodes and decodes the various image frames. A separate audio processor 46 may also be present controlling signals to and from the speakers 34 and the microphone 124. The graphical display interface 120 is refreshed from a frame memory 48 as controlled by a user interface chip 50 which may process signals to and from the display interface 20 and/or additionally process user inputs from the keypad 22 and elsewhere.

Certain embodiments of the UE 10 may also include one or more secondary radios such as a wireless local area network radio WLAN 37 and a Bluetooth® radio 39, which may incorporate an antenna on the chip or be coupled to an antenna off the chip. Throughout the apparatus are various memories such as random access memory RAM, which can include the system DRAM 14, read only memory ROM 45, and in some embodiments removable memory such as the illustrated memory card 20 on which various programs and data may be stored. All of these components within the UE 10 are normally powered by a portable power supply such as a battery 49.

The processors 38, 40, 42, 44, 46, 50, if embodied as separate entities in a UE 10, may operate in a slave relationship to the main processor (CPU) 12, which may then be in a master relationship to them. Certain embodiments may be disposed across various chips and memories as shown, or disposed within another processor that combines some of the functions described above for FIG. 9. Any or all of these various processors of FIG. 9 access one or more of the various memories, which may be on chip with the processor or separate from the chip with the processor. Note that the various integrated circuits (e.g., chips 38, 40, 42, etc.) that were described above may be combined into a fewer number than described and, in a most compact case, may all be embodied physically within a single chip.

In this exemplary embodiment the CPU 12 of the UE 10 (the host device) operates with the memory card 20 (the mass storage memory device) as described above with respect to FIGS. 5A, 5B and 5C so that the memory card 20 can be extended to use at least a portion of the system Dynamic RAM 14 of the UE 10 as described above.

In general, the various exemplary embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the exemplary embodiments of this invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.

It should thus be appreciated that at least some aspects of the exemplary embodiments of the inventions may be practiced in various components such as integrated circuit chips and modules, and that the exemplary embodiments of this invention may be realized in an apparatus that is embodied as an integrated circuit. The integrated circuit, or circuits, may comprise circuitry (as well as possibly firmware) for embodying at least one or more of a data processor or data processors, a digital signal processor or processors, baseband circuitry and radio frequency circuitry that are configurable so as to operate in accordance with the exemplary embodiments of this invention.

Various modifications and adaptations to the foregoing exemplary embodiments of this invention may become apparent to those skilled in the relevant arts in view of the foregoing description, when read in conjunction with the accompanying drawings. However, any and all modifications will still fall within the scope of the non-limiting and exemplary embodiments of this invention.

It should be noted that the terms “connected,” “coupled,” or any variant thereof, mean any connection or coupling, either direct or indirect, between two or more elements, and may encompass the presence of one or more intermediate elements between two elements that are “connected” or “coupled” together. The coupling or connection between the elements can be physical, logical, or a combination thereof. As employed herein two elements may be considered to be “connected” or “coupled” together by the use of one or more wires, cables and/or printed electrical connections, as well as by the use of electromagnetic energy, such as electromagnetic energy having wavelengths in the radio frequency region, the microwave region and the optical (both visible and invisible) region, as several non-limiting and non-exhaustive examples.

It is noted that various non-limiting embodiments described herein may be used separately, combined or selectively combined for specific applications.

Further, some of the various features of the above non-limiting embodiments may be used to advantage without the corresponding use of other described features. The foregoing description should therefore be considered as merely illustrative of the principles, teachings and exemplary embodiments of this invention, and not in limitation thereof.

It is to be understood that the above-described arrangements are only illustrative of the application of the principles of the present invention. Numerous modifications and alternative arrangements may be devised by those skilled in the art without departing from the scope of the invention, and the appended claims are intended to cover such modifications and arrangements. 

What is claimed is:
 1. A method, comprising: dynamically managing, by a memory module controller of a mass memory module, storage of all or a portion of operational state data for operating the memory module controller into an extended random access memory comprised in a memory of the mass memory module and in a host system memory of a host device; and reading, by the memory module controller after waking up from a shut down or a sleep state of the mass memory module, at least a part of the operational state data from one or more of: the extended random access memory and a non-volatile mass memory to restore an operational state of the memory module controller.
 2. The method as in claim 1, wherein a further part of the operational state data is stored by the memory module controller in the non-volatile memory of the mass memory module.
 3. The method as in claim 1, wherein the reading is based on settings of the mass memory module or based on a command or an attribute of a command from the host device.
 4. The method as in claim 3, wherein if the command or the attribute is provided by the host device, the reading is based on one of: the command or the attribute which overrides the settings and the settings which overrides the command or the attribute.
 5. The method as in claim 1, wherein the part of the operational state data is stored in a dedicated portion of the host system memory.
 6. The method as in claim 1, wherein the operational state data is divided at least into high priority and low priority data, and only the high priority data is stored in the host system memory of the extended random access memory.
 7. The method as in claim 6, wherein the high priority data includes at least state information.
 8. The method as in claim 1, wherein the operational state data comprises one or more of: state information, a logical to physical mapping table and register settings.
 9. The method as in claim 1, wherein before the dynamically managing, the method further comprises: receiving from the host device a command or an attribute in a command to disable the mass memory module, wherein the dynamically configuring comprises reconfiguring by the memory module controller storage of the operational state data into the host system memory of the extended random access memory and the non-volatile memory of the mass memory module.
 10. The method as in claim 9, wherein at least one part of the operational state data is duplicated in both the host system memory and the non-volatile memory of the mass memory module.
 11. The method as in claim 1, wherein before going to a sleeping mode after a predefined timeout by the mass memory module, the dynamically configuring comprises reconfiguring by the memory module controller the storage of the operational state data into the host system memory of the extended random access memory and the non-volatile memory of the mass memory module.
 12. The method of claim 1, further comprising: receiving from the host device a command or an attribute in a command of the host device warning about shutting down of the host system memory; and further dynamically configuring by the memory module controller the storage of the operational state data into the extended random access memory comprised in the mass memory module and the non-volatile memory of the mass memory module.
 13. The method of claim 1, further comprising: receiving from the host device a command or an attribute in a command of the host device warning about data stored in the host system memory being compromised; and further dynamically reconfiguring by the memory module controller the storage of the operational state data by restoring the compromised data if it is not stored in the extended random access memory comprised in the mass memory module by using the non-volatile memory of the mass memory module.
 14. The method of claim 1, further comprising: receiving from the host device a command or an attribute in a command warning about shutting down of the host system memory and to disable the mass memory module; and further dynamically reconfiguring by the memory module controller the storage of all or selected operational state data into the non-volatile memory of the mass memory module.
 15. The method of claim 14, wherein after waking up the mass memory module initializes using all or selected operational state data stored in the non-volatile memory.
 16. The method of claim 14, further comprising: receiving from the host device a command or an attribute in a command warning about the host system memory being enabled; and further dynamically configuring by the memory module controller the storage of all or selected part of the operational state data into the host system memory of the host device.
 17. The method of claim 1, further comprising: receiving from the host device a command or an attribute in a command forbidding writing in the host system memory additional information related to the operational state data, so that the memory module controller can only read the operational state data from the host system memory.
 18. An apparatus, comprising: a mass memory module comprising an extended random access memory together with a portion of a host system memory in a host device; and a memory module controller configured to dynamically manage storage of all or a portion of operational state data for operating the memory module controller into an extended random access memory comprised in a memory of the mass memory module and in the host system memory of the host device, and further configured to read, after waking up from a shut down or a sleep state of the mass memory module, a part of the operational state data from one or more of: the extended random access memory and a non-volatile mass memory of the mass memory module to restore an operational state of the memory module controller.
 19. The apparatus of claim 18, where the memory module is configured to store a part of the operational state data in the non-volatile memory.
 20. The apparatus of claim 18, wherein the apparatus comprises the host device.
 21. The apparatus of claim 18, wherein the apparatus comprises the mass memory module.
 22. The apparatus as in claim 18, wherein the memory of the mass memory module is one of a static random access memory, a magnetic random access memory, a phase change random access memory and a resistive random access memory, and the host system memory of the host device is one of a dynamic random access memory, a magnetic random access memory, a phase change random access memory and a resistive random access memory. 